import Mock from 'mockjs';

// eslint-disable-next-line consistent-return
Mock.mock('api.com', (option) => {
  if (option.type === 'GET') {
    if (option.url === 'api.com') {
      return Mock.mock({
        'image|6': ['@image("1237X626","@color","#ffffff","png",)'],
        'img|3': ['@image("1237X626","@color","#ffffff","png",)'],
        'num|6': [{
          'images|6': ['@image("1237X626","@color","#ffffff","png",)'],
          'word|11': '@cword',
          'word_1|4': '@cword',
          'word_2|4': '@cword',
          'word_3|4': '@cword',
          'word_4|2-5': '@cword',
          muns: '@natural(100,10000)',
          money: '@float(1,20,1,1)',
        }],
      });
    }
  }
  // eslint-disable-next-line no-empty
  if (option.type === 'POST') {
  }
});

